package com.kevis.webCommon.web.domain.response.module;

import lombok.Data;

@Data
public class ResultEasyuiTable {
    public Object rows;
    public long total;
    public long timeOut;

    /**
     * 返回分页表格数据
     * @param count 总数量
     * @param data 数据
     * @return
     */
    public static ResultEasyuiTable pageTable(long count,Object data){
        ResultEasyuiTable resultTable = new ResultEasyuiTable();
        resultTable.setTotal(count);
        //resultTable.setCode(0);
        resultTable.setRows(data);
        return resultTable;
    }
}
